package com.zj.user.enums;

/**
 * @Auther: zj
 * @Date: 2018/11/14 10:01
 * @Description: 用户的枚举
 */
public enum  UserEnum {
    UP(0,"test"),
    USERLOGINFailTURE(-1,"登录失败，用户不存在"),
    USERROLEERROR(-2,"没有相应的权限"),
    USERPASSWORDERROR(-3,"密码错误"),
    USERAPIKEYISNOTNULL(-4,"该api-key已存在"),
    USER_CHANGE_STATUS_SUCCESS(1,"切换状态成功"),
    USER_HAFREEZE(-5,"该用户已被冻结"),
    USER_CODE_IS_ERROR(-6,"验证码错误"),
    USER_HASEXISTED(-7,"该用户名已存在"),
    ;

    private Integer code;

    private String message;

    UserEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
